﻿namespace EyeOpen.Cart.Linq
{
    using System;
    using System.Collections.Generic;

    public static class IEnumerableExtension
    {
        public static void ForEach<T>(this IEnumerable<T> collection, Action<T> action) 
        {
            foreach (T item in collection) 
            {
                action.Invoke(item);
            }
        }
    }
}